﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MyWeb.Data;
using System.Data;
namespace MyWeb.Business
{
	public class MenuService
	{
		private static readonly MenuDAL db = new MenuDAL();
		#region[Menu_GetById]
        public static DataTable Menu_GetById(string Id)
		{
			return db.Menu_GetById(Id);
		}
		#endregion
		#region[Menu_GetByAll]
		public static DataTable Menu_GetByAll()
		{
			return db.Menu_GetByAll();
		}
		#endregion
		#region[Menu_GetByTop]
		public static DataTable Menu_GetByTop(string Top, string Where, string Order)
		{
			return db.Menu_GetByTop(Top, Where, Order);}
		#endregion
		#region[Menu_Insert]
		public static void Menu_Insert(MenuInfo Data)
		{
			 db.Menu_Insert(Data);
		}
		#endregion
		#region[Menu_Update]
		public static void Menu_Update(MenuInfo Data)
		{
			 db.Menu_Update(Data);
		}
		#endregion
		#region[Menu_Delete]
		public static void Menu_Delete(String Id)
		{
			 db.Menu_Delete(Id);
		}
		#endregion
	}
}